Crate wpilib_sys[][src]

Re-exports

pub use self::bindings::*;
pub use self::hal_call::*;
pub use self::usage::*;

Modules

bindings
hal_call
usage

Macros

hal_call

Wraps a C/C++ HAL function call that looks like T foo(arg1, arg2, arg3, ... , int32_t* status) and turns that status into aHALResult, with a non-zero status code returning in theErr` variant.

maybe_hal_call

Like hal_call!, but ignores the status code and returns the functions result anyway. This sounds bad, but WPILibC does it in some places, and there isn't really a reason to needlessly complicate the public interface.

resource_instance

A utility macro for referencing rust-bindgen's generated names for usage instances. Currently, the identifier for the C++ language is nUsageReporting_tInstances_kLanguage_CPlusPlus. This is equivalent to resource_instance!(Language, CPlusPLus).

resource_type

A utility macro for referencing rust-bindgen's generated names for usage types. Currently, the identifier for a digital output is nUsageReporting_tResourceType_kResourceType_DigitalOutput. This is equivalent to resource_type!(DigitalOutput).